package freespiritsocial.io.user.ui.adapter.search

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import freespiritsocial.io.user.R
import freespiritsocial.io.user.data.model.bean.Tag
import freespiritsocial.io.user.databinding.ItemForYouTagsBinding
import java.util.*

/**
 * for you tags 页面
 */
class ForYouTagsAdapter(
    data: ArrayList<Tag> = arrayListOf(),
    layoutResIdRes: Int = R.layout.item_for_you_tags
):
    BaseQuickAdapter<Tag,BaseDataBindingHolder<ItemForYouTagsBinding>>(layoutResIdRes,data) {

    override fun convert(holder: BaseDataBindingHolder<ItemForYouTagsBinding>,item: Tag) = with(holder.dataBinding) {
        this?.name = item.tag
    }
}